package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.PictureRelationpictureMapper;
import com.ruoyi.system.domain.PictureRelationpicture;
import com.ruoyi.system.service.IPictureRelationpictureService;
import com.ruoyi.common.core.text.Convert;

/**
 * 图文关系管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-08-16
 */
@Service
public class PictureRelationpictureServiceImpl implements IPictureRelationpictureService 
{
    @Autowired
    private PictureRelationpictureMapper pictureRelationpictureMapper;

    @Override
    public List<PictureRelationpicture> getupStatusAndcollectStatusList(PictureRelationpicture pictureRelationpicture) {
        return pictureRelationpictureMapper.getupStatusAndcollectStatusList(pictureRelationpicture);
    }

    /**
     * 查询图文关系管理
     * 
     * @param id 图文关系管理主键
     * @return 图文关系管理
     */
    @Override
    public PictureRelationpicture selectPictureRelationpictureById(Long id)
    {
        return pictureRelationpictureMapper.selectPictureRelationpictureById(id);
    }

    /**
     * 查询图文关系管理列表
     * 
     * @param pictureRelationpicture 图文关系管理
     * @return 图文关系管理
     */
    @Override
    public List<PictureRelationpicture> selectPictureRelationpictureList(PictureRelationpicture pictureRelationpicture)
    {
        return pictureRelationpictureMapper.selectPictureRelationpictureList(pictureRelationpicture);
    }

    /**
     * 新增图文关系管理
     * 
     * @param pictureRelationpicture 图文关系管理
     * @return 结果
     */
    @Override
    public int insertPictureRelationpicture(PictureRelationpicture pictureRelationpicture)
    {
        return pictureRelationpictureMapper.insertPictureRelationpicture(pictureRelationpicture);
    }

    /**
     * 修改图文关系管理
     * 
     * @param pictureRelationpicture 图文关系管理
     * @return 结果
     */
    @Override
    public int updatePictureRelationpicture(PictureRelationpicture pictureRelationpicture)
    {
        return pictureRelationpictureMapper.updatePictureRelationpicture(pictureRelationpicture);
    }

    /**
     * 批量删除图文关系管理
     * 
     * @param ids 需要删除的图文关系管理主键
     * @return 结果
     */
    @Override
    public int deletePictureRelationpictureByIds(String ids)
    {
        return pictureRelationpictureMapper.deletePictureRelationpictureByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除图文关系管理信息
     * 
     * @param id 图文关系管理主键
     * @return 结果
     */
    @Override
    public int deletePictureRelationpictureById(Long id)
    {
        return pictureRelationpictureMapper.deletePictureRelationpictureById(id);
    }
}
